package com.wwm.springcloud.invoiceservice.controller;

import com.wwm.springcloud.invoiceservice.client.UserServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class InvoiceController
{
    @Autowired
    private UserServiceClient userServiceClient;

    /**
     * 测试
     * @throws Exception
     */
    @RequestMapping(value = "/test")
    public String test() throws Exception
    {
        return userServiceClient.test();
    }
}
